package fag.core.game;

import java.awt.Graphics2D;
import fag.core.model.Sprite;

/**
 *	Classe d'une scene de jeu avec un background
 */

public class Background extends Scene
{
	
	Sprite sprite;
	int width;
	int height;
	
	public Background(Sprite sprite, int w, int h){
		width=w;
		height=h;
		this.sprite=sprite;
	}
	
	void setBackground(Sprite sprite){
		this.sprite=sprite;
	}
	
	void draw(Graphics2D graphics2d){
		graphics2d.drawImage(sprite.getBufferedImage(),0,0,width,height,null);
		super.draw(graphics2d);
	}	

}